export type ThemeColor = (
  'primary' |
  'success' |
  'warning' |
  'danger' |
  'error' |
  'info'
)

export interface LxTheme {
  fg: string
  fg1: string
  fg2: string
  bg: string
  bg1: string
  bg2: string
  primary: string
  success: string
  warning: string
  danger: string
  error: string
  info: string
}

const lightmode: LxTheme = {
  fg: '#000',
  fg1: '#000',
  fg2: '#111',
  bg: '#fff',
  bg1: '#fff',
  bg2: '#f5f5f5',
  primary: '#409eff',
  success: '#67c23a',
  warning: '#e6a23c',
  danger: '#f56c6c',
  error: '#f56c6c',
  info: '#909399',
}

const darkmode: LxTheme = {
  fg: '#fff',
  fg1: '#fff',
  fg2: '#f5f5f5',
  bg: '#000',
  bg1: '#000',
  bg2: '#111',
  primary: '#409eff',
  success: '#67c23a',
  warning: '#e6a23c',
  danger: '#f56c6c',
  error: '#f56c6c',
  info: '#909399',
}

export const theme = {
  current: lightmode,
  lightmode,
  darkmode,
}
